package com.example.retry;

/**
 * @author shanchong
 * @date 2021/4/20
 **/
public class Demo {

    public static void main(String[] args) throws InterruptedException {
        test(false);
    }

    public static void test(boolean s) throws InterruptedException {
        retry:
        for (;;) {
            System.out.println("sssssss");
            Thread.sleep(1000);
            for (;;) {
                System.out.println("aaaaaaaaa");
                Thread.sleep(1000);
                if (s) {
                    continue retry;
                }else {
                    break retry;
                }

            }

        }
    }

}
